package org.example.warehouse.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 仓库出库详情对象 sell_store_detail
 *
 * @author 小孟微信：xiaomengcode
 * @date 2024-04-12
 */
public class SellStoreDetail extends OrderDetail
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long sellDetailId;

    /** 合同ID */
    @Excel(name = "合同ID")
    private String contractId;

    private Long accountId;

    /** 入库单号 */
    @Excel(name = "入库单号")
    private String sellDetailNo;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 详情Id */
    @Excel(name = "详情Id")
    private Long orderDetailId;

    /** 产品ID */
    @Excel(name = "产品ID")
    private Long productId;

    /** 数量 */
    @Excel(name = "数量")
    private Integer num;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    private BigDecimal averageMoney;

   private  String supplierName;

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    /** 类型 */
    @Excel(name = "类型")
    private Integer type;

    public BigDecimal getAverageMoney() {
        return averageMoney;
    }

    public void setAverageMoney(BigDecimal averageMoney) {
        this.averageMoney = averageMoney;
    }

    @Override
    public BigDecimal getPrice() {
        return price;
    }

    @Override
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public void setSellDetailId(Long sellDetailId)
    {
        this.sellDetailId = sellDetailId;
    }

    public Long getSellDetailId()
    {
        return sellDetailId;
    }

    public void setSellDetailNo(String sellDetailNo)
    {
        this.sellDetailNo = sellDetailNo;
    }

    public String getSellDetailNo()
    {
        return sellDetailNo;
    }
    public void setWarehouseId(Long warehouseId)
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId()
    {
        return warehouseId;
    }
    public void setOrderDetailId(Long orderDetailId)
    {
        this.orderDetailId = orderDetailId;
    }

    public Long getOrderDetailId()
    {
        return orderDetailId;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setNum(Integer num)
    {
        this.num = num;
    }

    public Integer getNum()
    {
        return num;
    }

    @Override
    public String getContractId() {
        return contractId;
    }

    @Override
    public void setContractId(String contractId) {
        this.contractId = contractId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sellDetailId", getSellDetailId())
            .append("contractId", getContractId())
            .append("sellDetailNo", getSellDetailNo())
            .append("warehouseId", getWarehouseId())
            .append("orderDetailId", getOrderDetailId())
            .append("productId", getProductId())
            .append("num", getNum())
            .append("price", getPrice())
            .append("type", getType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}
